<template>
    <view>
        <!-- template对应的原始代码，为保证正常显示，已对其进行隐藏。 -->
        <block name="adminFormsDetailTpl" v-if="false">
            <view class="admin-comm-list" v-if="user.USER_FORMS.length > 0">
                <view class="item">
                    <view class="info">
                        <view class="info-item info-item-solid" v-if="item.type != 'line'" v-for="(item, index) in user.USER_FORMS" :key="index">
                            <view class="title">{{ item.title }}</view>

                            <view class="mao">：</view>

                            <view v-if="item.type == 'image'" class="content">
                                <image
                                    @tap="url"
                                    data-type="image"
                                    :data-url="itm"
                                    :src="itm"
                                    mode="aspectFill"
                                    class="loading"
                                    :show-menu-by-longpress="true"
                                    v-for="(itm, index1) in item.val"
                                    :key="index1"
                                ></image>
                            </view>

                            <view v-else-if="item.type == 'rows'" class="content" style="flex-direction: column">
                                <text v-for="(itm, index1) in item.val" :key="index1">
                                    <text>{{ itm.title }}</text>

                                    <text v-if="itm.val">- {{ itm.val }}</text>
                                </text>
                            </view>

                            <view v-else-if="item.type == 'switch'" class="content">{{ item.val === true ? '是' : '否' }}</view>

                            <view @tap="url" data-type="copy" :data-url="item.val" v-else class="content">{{ item.val }}</view>
                        </view>
                    </view>
                </view>
            </view>
        </block>
    </view>
</template>

<style>
@import './admin_forms_detail_tpl.css';
</style>
